package com.nc.shop.service.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.nc.shop.service.dao.ClassifyDao;
import com.nc.shop.service.model.entity.ClassifyEntity;
import com.nc.shop.service.service.ClassifyService;
import com.plug.result.ReqPage;
import com.plug.result.RetResponse;
import com.plug.result.RetResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.*;
import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 * 创建人:    xvzhe
 * 创建时间:
 * 修改时间:
 * 版本:      v1.0
 */
@Service
public class ClassifyServiceImpl implements ClassifyService {
    @Autowired
    ClassifyDao classifyDao;

    @Override
    public RetResult findPage(ClassifyEntity classifyEntity) {
        return RetResponse.makeOKRsp(classifyDao.findAll());
    }
}
